/**
 * main.ts
 *
 * Bootstraps Vuetify and other plugins then mounts the App`
 */

// Plugins
import { registerPlugins } from "@/plugins";

// Components
import App from "./App.vue";

// Composables
import { createApp } from "vue";

// Styles
import "unfonts.css";
import { createPinia } from "pinia";
import { useMessageStore } from "./stores/app";

const app = createApp(App);
const pinia = createPinia();
app.use(pinia);
registerPlugins(app);

app.mount("#app");

/* const messageStore = useMessageStore();
messageStore.saveMessage({
  id: 1,
  content: "你好，这是一条测试消息",
  senderId: 1001,
  receiverId: 1002,
  timestamp: new Date().toISOString(),
  status: "sent",
  type: "PRIVATE",
});

messageStore.saveMessage({
  id: 2,
  content: "大家好，我是开发群的新成员！",
  senderId: 1001,
  groupId: 2001,
  timestamp: new Date().toISOString(),
  status: "delivered",
  type: "GROUP",
});

console.log(messageStore.messages);
 */